
import request from '@/utils/request'
export default {
    // 删除
    xiaoxidel(ids) {
        return request({
            url: `/oa_email/deleteByIds`,
            method: 'delete',
            data: ids
        })
    },


  xiaoxidelpls(ids) {
    return request({
      url: `/oa_email/deleteByIds`,
      method: 'delete',
      data: ids
    })
  },
    //   oa_email/receivedMessage


        // 发出
        SelectFa() {
            return request({
                url: `/oa_email/sendedMessage`,
                method: 'get',
            })
        },
        //收到
        SelectShou() {
            return request({
                url: `/oa_email/receivedMessage`,
                method: 'get',
            })
        },

    // 发出分页
    SelectFaFen(user) {
        return request({
            url: `/oa_email/sendedMessage`,
            method: 'get',
            params:user
        })
    },
    // 收到分页
    SelectShouFen(user) {
        return request({
            url: `/oa_email/receivedMessage`,
            method: 'get',
            params:user
        })
    },


    //发送
    add(user) {
        return request({
            url: '/oa_email/send',
            method: 'post',
            data: user
        })
    },




}
